"""
name: Hello Wold
version: 1.0
"""
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QLabel

class MyWidget(QWidget):
    def __init__(self):
        super().__init__()
        self.resize(500, 250)
        self.setWindowTitle('Hello World')
        self.lable = QLabel('按钮示例', self) 
        self.lable.setGeometry(20, 20, 200, 20)  
        self.button = QPushButton('点我啊', self)  
        self.button.setGeometry(20, 50, 200, 100) 
        self.button.clicked.connect(self.close)

app = QApplication([])
widget = MyWidget()  
widget.show() 
app.exec_()  
